GNUPro Toolkit Documentation|Index|Next
The C Preprocessor

Copyright © 1988-1997 Free Software Foundation, Inc.
Permission is granted to make and distribute verbatim copies of this documentation, provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this documentation under the conditions for verbatim copying, provided also that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this documentation into another language, under the above conditions for modified versions.
This documentation has been prepared by Cygnus Technical Publications; contact the Cygnus Solutions Technical Publications staff: doc@cygnus.com.
Copyright © 1991, 1992, 1993, 1994, 1995, 1996, 1997 Cygnus Solutions.
All rights reserved.
GNUPro™, the GNUPro™ logo and the Cygnus Solutions logo are all trademarks of Cygnus Solutions. All other brand and product names are trademarks of their respective owners.

See the following documentation for detailed discussion of the C preprocessor.

- Overview of the C preprocessor
- Transformations made globally
- Preprocessing directives
- Header files

- Uses of header files
- The #include directive
- How #include works
- Once-only include files
- Inheritance and header files

- Macros

- Simple macros
- Macros with arguments
- Predefined macros

- Standard predefined macros
- Nonstandard predefined macros

- Stringification
- Concatenation
- Undefining macros
- Redefining macros
- Pitfalls and subtleties of macros

- Improperly nested constructs
- Unintended grouping of arithmetic
- Swallowing the semicolon
- Duplication of side effects
- Self-referential macros
- Separate expansion of macro arguments
- Cascaded use of macros
- Newlines in macro arguments

- Conditionals

- Why conditionals are used

- Syntax of conditionals
- The #if directive
- The #else directive
- The #elif directive

- Keeping deleted code for future reference
- Conditionals and macros
- Assertions
- The #error and #warning directives

- Combining source files
- Miscellaneous preprocessing directives
- C preprocessor output
- Invoking the C preprocessor
- Index

Top|Next